﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001007 RID: 4103
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournEnterRoomCsReq : IMessage<RogueTournEnterRoomCsReq>, IMessage, IEquatable<RogueTournEnterRoomCsReq>, IDeepCloneable<RogueTournEnterRoomCsReq>, IBufferMessage
	{
		// Token: 0x170033E6 RID: 13286
		// (get) Token: 0x0600B78D RID: 46989 RVA: 0x001EF521 File Offset: 0x001ED721
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournEnterRoomCsReq> Parser
		{
			get
			{
				return RogueTournEnterRoomCsReq._parser;
			}
		}

		// Token: 0x170033E7 RID: 13287
		// (get) Token: 0x0600B78E RID: 46990 RVA: 0x001EF528 File Offset: 0x001ED728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournEnterRoomCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170033E8 RID: 13288
		// (get) Token: 0x0600B78F RID: 46991 RVA: 0x001EF53A File Offset: 0x001ED73A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournEnterRoomCsReq.Descriptor;
			}
		}

		// Token: 0x0600B790 RID: 46992 RVA: 0x001EF541 File Offset: 0x001ED741
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnterRoomCsReq()
		{
		}

		// Token: 0x0600B791 RID: 46993 RVA: 0x001EF549 File Offset: 0x001ED749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnterRoomCsReq(RogueTournEnterRoomCsReq other) : this()
		{
			this.nextRoomType_ = other.nextRoomType_;
			this.curRoomIndex_ = other.curRoomIndex_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B792 RID: 46994 RVA: 0x001EF57A File Offset: 0x001ED77A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnterRoomCsReq Clone()
		{
			return new RogueTournEnterRoomCsReq(this);
		}

		// Token: 0x170033E9 RID: 13289
		// (get) Token: 0x0600B793 RID: 46995 RVA: 0x001EF582 File Offset: 0x001ED782
		// (set) Token: 0x0600B794 RID: 46996 RVA: 0x001EF58A File Offset: 0x001ED78A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NextRoomType
		{
			get
			{
				return this.nextRoomType_;
			}
			set
			{
				this.nextRoomType_ = value;
			}
		}

		// Token: 0x170033EA RID: 13290
		// (get) Token: 0x0600B795 RID: 46997 RVA: 0x001EF593 File Offset: 0x001ED793
		// (set) Token: 0x0600B796 RID: 46998 RVA: 0x001EF59B File Offset: 0x001ED79B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurRoomIndex
		{
			get
			{
				return this.curRoomIndex_;
			}
			set
			{
				this.curRoomIndex_ = value;
			}
		}

		// Token: 0x0600B797 RID: 46999 RVA: 0x001EF5A4 File Offset: 0x001ED7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournEnterRoomCsReq);
		}

		// Token: 0x0600B798 RID: 47000 RVA: 0x001EF5B2 File Offset: 0x001ED7B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournEnterRoomCsReq other)
		{
			return other != null && (other == this || (this.NextRoomType == other.NextRoomType && this.CurRoomIndex == other.CurRoomIndex && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B799 RID: 47001 RVA: 0x001EF5F0 File Offset: 0x001ED7F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NextRoomType != 0U)
			{
				num ^= this.NextRoomType.GetHashCode();
			}
			if (this.CurRoomIndex != 0U)
			{
				num ^= this.CurRoomIndex.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B79A RID: 47002 RVA: 0x001EF648 File Offset: 0x001ED848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B79B RID: 47003 RVA: 0x001EF650 File Offset: 0x001ED850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B79C RID: 47004 RVA: 0x001EF65C File Offset: 0x001ED85C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurRoomIndex != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.CurRoomIndex);
			}
			if (this.NextRoomType != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.NextRoomType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B79D RID: 47005 RVA: 0x001EF6B8 File Offset: 0x001ED8B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NextRoomType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NextRoomType);
			}
			if (this.CurRoomIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurRoomIndex);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B79E RID: 47006 RVA: 0x001EF710 File Offset: 0x001ED910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournEnterRoomCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NextRoomType != 0U)
			{
				this.NextRoomType = other.NextRoomType;
			}
			if (other.CurRoomIndex != 0U)
			{
				this.CurRoomIndex = other.CurRoomIndex;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B79F RID: 47007 RVA: 0x001EF760 File Offset: 0x001ED960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B7A0 RID: 47008 RVA: 0x001EF76C File Offset: 0x001ED96C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.NextRoomType = input.ReadUInt32();
					}
				}
				else
				{
					this.CurRoomIndex = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004A1A RID: 18970
		private static readonly MessageParser<RogueTournEnterRoomCsReq> _parser = new MessageParser<RogueTournEnterRoomCsReq>(() => new RogueTournEnterRoomCsReq());

		// Token: 0x04004A1B RID: 18971
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004A1C RID: 18972
		public const int NextRoomTypeFieldNumber = 14;

		// Token: 0x04004A1D RID: 18973
		private uint nextRoomType_;

		// Token: 0x04004A1E RID: 18974
		public const int CurRoomIndexFieldNumber = 8;

		// Token: 0x04004A1F RID: 18975
		private uint curRoomIndex_;
	}
}
